package huawei.interview;

import java.util.LinkedList;
import java.util.List;
import java.util.Scanner;

/**
 * @author gh
 * @create 2021-05-31 15:18
 */
public class t2 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        List<Integer> nums = new LinkedList<>();

        int[] temp = new  int[1000];
        int i = 0;
        int sum = 0, m = 0, n = 0;
        while (in.hasNextInt()) {
//            nums.add(in.nextInt());
            System.out.println("A");
//            System.out.println(in.nextInt());
            temp[i] = in.nextInt();
            i++;
            System.out.println("E");
        }
        in.close();
        System.out.println("123");
        for (int t : temp){
            System.out.println("nums="+t);
        }
//        for (int a = 1; a < nums.size() - 1; a++) {
//            if (Math.abs(nums.get(a) + nums.get(a + 1)) < sum) {
//                sum = Math.abs(nums.get(a) + nums.get(a + 1));
//
//                m = nums.get(a) < nums.get(a + 1) ? nums.get(a) : nums.get(a + 1);
//                n = nums.get(a) < nums.get(a + 1) ? nums.get(a + 1) : nums.get(a);
//            }
//        }
//        System.out.println(m + " " + n + " " + sum);
    }
}
